package com.yc.biz;

import java.util.List;

import com.yc.bean.User;

public interface UserBiz {
	
	public int reg(String uname, String pwd,String tel);

	public User login(String uname, String pwd);
	
	

	//后台的登录注册
public User adminLogin(String uname, String pwd);
	
	/**
	 * admin page user manage
	 * @param page 
	 * @return
	 */
	public List<User> getUsersbyPage(int page);
	
	/**
	 * admin_page   user_manage   modify
	 * @param uid
	 * @param uname
	 * @param tel
	 * @return
	 */
	public int modify_user(int uid, String uname, String tel);
	
	/**
	 * 管理员端用户删除
	 * @param uid
	 * @return
	 */
	public int user_del(int uid);
	
	/**
	 * 用户个人信息修改
	 * @param uid
	 * @param uname
	 * @param pwd
	 * @param tel
	 * @return
	 */
	public int modify_person(int uid, String uname, String pwd,String paypwd, String tel);
	
	/**
	 * 管理员个人信息修改
	 * @param uid
	 * @param uname
	 * @param pwd
	 * @param tel
	 * @return
	 */
	public int modify_persons(int uid, String uname, String pwd, String tel);
	/**
	 * 获取用户的页面总数
	 * @return
	 */
	public int getUserTotalPage();
}
